move new test to wpt Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
diff --git a/css/css-fonts/font-synthesis-weight-webfont-bold-ref.html b/css/css-fonts/font-synthesis-weight-webfont-bold-ref.html new file mode 100644 index 0000000..d99ea69 --- /dev/null +++ b/css/css-fonts/font-synthesis-weight-webfont-bold-ref.html
@@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang = "en"> + <meta charset="utf-8"> + <title>CSS Test: font synthesis weight: bold web font should not be "double emboldened"</title> + <style> + @font-face { + font-family: "lato"; + src: url(/fonts/Lato-Bold.ttf) + } + .test { + font-family: "lato"; + font-size: 3em; + } + </style> + + <p class="test">Filler text</p> +</html> \ No newline at end of file diff --git a/css/css-fonts/font-synthesis-weight-webfont-bold.html b/css/css-fonts/font-synthesis-weight-webfont-bold.html new file mode 100644 index 0000000..63a2bdc --- /dev/null +++ b/css/css-fonts/font-synthesis-weight-webfont-bold.html
@@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang = "en"> + <meta charset="utf-8"> + <title>CSS Test: font synthesis weight: bold web font should not be "double emboldened"</title> + <link rel="match" href="font-synthesis-weight-webfont-bold-ref.html"> + <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-synthesis-weight"> + <meta name="assert" content=" If font face is already bold, user agents must not synthesize bold face again"> + <style> + @font-face { + font-family: "lato"; + src: url(/fonts/Lato-Bold.ttf) + } + .test { + font-family: "lato"; + font-size: 3em; + } + .synth { + font-weight: bold; + } + </style> + + <p class="test synth">Filler text</p> +</html> \ No newline at end of file diff --git a/fonts/Lato-Bold.ttf b/fonts/Lato-Bold.ttf new file mode 100755 index 0000000..016068b --- /dev/null +++ b/fonts/Lato-Bold.ttf Binary files differ